// 配置数据库连接

const mysql = require('mysql');

const db = mysql.createPool({
    host: '127.0.0.1',
    user: 'root',
    password: 'root',
    database: 'booksdb'
})
const sql = 'select * from bks'
db.query(sql, (err, rus) => {
    console.log(rus);

})
